package com.yyge.controller.mobile.mapstruct;

import com.yyge.controller.mobile.addressbook.req.AddressBookEditReq;
import com.yyge.controller.mobile.addressbook.req.AddressBookReq;
import com.yyge.controller.mobile.addressbook.resp.AddressBookResp;
import com.yyge.entity.AddressBook;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AddressBookConvert {

    AddressBookConvert MAPPER= Mappers.getMapper(AddressBookConvert.class);
    AddressBook convert(AddressBookReq req);
    AddressBook convert(AddressBookEditReq req);

    AddressBookResp convert(AddressBook req);

}
